TEMPLATE = app
CONFIG += console c++11
CONFIG -= app_bundle
CONFIG -= qt

unix: INCLUDEPATH += \
    /usr/include/mysql \
    /usr/include/mysql++

SOURCES += \
    src/main.cpp \
    src/log.cpp \
    src/server.cpp \
    src/memorypool.cpp \
    src/event/event.cpp \
    src/event/eventtransfer.cpp \
    src/event/eventprocessor.cpp \
    src/event/eventfactory.cpp \
    src/event/timerevent.cpp \
    src/event/netevent.cpp \
    src/event/netbufferedevent.cpp \
    src/event/netreadcompleteevent.cpp \
    src/event/netwritecompleteevent.cpp \
    src/event/netconnectevent.cpp \
    src/event/netdisconnectevent.cpp \
    src/event/netserverstoppedevent.cpp \
    src/Service/asyncservice.cpp \
    src/Service/netservice.cpp \
    src/Service/tcpconnection.cpp \
    src/Service/tcpacceptor.cpp \
    src/Service/tcpconnectionfactory.cpp \
    src/Service/timerfactory.cpp \
    src/Service/signalservice.cpp \
    src/Service/databaseservice.cpp \
    src/Service/timerservice.cpp \
    src/Service/mysqlconnectionpool.cpp \
    src/business/table.cpp \
    src/business/chair.cpp \
    src/business/player.cpp \
    src/serviceproxy.cpp \
    src/businessproxy.cpp \
    src/Service/databaseimpl.cpp \
    src/Service/timer.cpp

HEADERS += \
    src/global.h \
    src/log.h \
    src/platform.h \
    src/server.h \
    src/memorypool.h \
    src/event/event.h \
    src/event/eventtransfer.h \
    src/event/eventprocessor.h \
    src/event/eventfactory.h \
    src/event/timerevent.h \
    src/event/netevent.h \
    src/event/netbufferedevent.h \
    src/event/netreadcompleteevent.h \
    src/event/netwritecompleteevent.h \
    src/event/netconnectevent.h \
    src/event/netdisconnectevent.h \
    src/event/netserverstoppedevent.h \
    src/Service/asyncservice.h \
    src/Service/netservice.h \
    src/Service/tcpconnection.h \
    src/Service/tcpacceptor.h \
    src/Service/tcpconnectionfactory.h \
    src/Service/timerfactory.h \
    src/Service/signalservice.h \
    src/Service/databaseservice.h \
    src/Service/timerservice.h \
    src/Service/mysqlconnectionpool.h \
    src/business/table.h \
    src/business/chair.h \
    src/business/player.h \
    src/serviceproxy.h \
    src/businessproxy.h \
    src/Service/databaseimpl.h \
    src/Service/timer.h

win32:CONFIG(release, debug|release): LIBS +=
else:win32:CONFIG(debug, debug|release): LIBS +=
else:unix: LIBS += \
    -lboost_system \
    -lboost_filesystem \
    -lboost_log \
    -lboost_log_setup \
    -lboost_thread \
    -lmysqlpp \
    -lpthread
